package com.zking.ssm.sys.service;

import com.zking.ssm.sys.model.HotelBrand;
import com.zking.ssm.sys.model.HotelBrandProduct;
import com.zking.ssm.util.PageBean;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IHotelBrandService {
    int deleteByPrimaryKey(Long id);

    int insert(HotelBrand record);

    int insertSelective(HotelBrand record);

    @Transactional(readOnly = true)
    HotelBrand selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(HotelBrand record);

    int updateByPrimaryKey(HotelBrand record);

    @Transactional(readOnly = true)
    List<HotelBrand> list(HotelBrand record, PageBean pageBean);

    @Transactional(readOnly = true)
    List<HotelBrandProduct> listall(HotelBrandProduct record, PageBean pageBean);

}